var VideoParser = (function(){
    return {
        parse: function(){            
            $('div[data-component-type="video"]').each(function(){
                try{
					var object = '<object height="370" width="470" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"  classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">'
					+'<param value="'+VideoParser.st_flash_domain+'/player_local.swf" name="movie">'
					+'<param value="high" name="quality">'
					+'<param value="transparent" name="wmode">'
					+'<param value="xmlPath='+VideoParser.domain +'/video/vne-info/id/' + this.getAttribute('data-component-value') + '&amp;colorAux=0x0099ff&amp;colorBorder=0x333333&amp;colorMain=0xffffff&amp;local=embed&amp;mAuto=false&amp;autoHide=false&amp;trackurl=&amp;tracktype=video" name="flashvars">'
					+'<param value="true" name="allowfullscreen">'
					+'<param value="always" name="allowScriptAccess">'
					+'<embed height="370" width="470" src="'+VideoParser.st_flash_domain+'/player_local.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" allowscriptaccess="always" allowfullscreen="true" type="application/x-shockwave-flash" flashvars="xmlPath='+VideoParser.domain +'/video/vne-info/id/' + this.getAttribute('data-component-value') +'&amp;colorAux=0x0099ff&amp;colorBorder=0x333333&amp;colorMain=0xffffff&amp;local=embed&amp;mAuto=false&amp;autoHide=false&amp;trackurl=&amp;tracktype=video">'
					+'</object>';
					$(this).html(object).show();
					$(this).removeAttr('data-component-type');
					$(this).removeAttr('data-component-value');
					$(this).removeAttr('data-component');
				}catch(e){}
                
            });
        }
    }
})();